﻿<UserControl x:Class="Coding4Fun.SlideShow.Player"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
	d:DesignWidth="480" d:DesignHeight="800">
    <UserControl.Resources>
        <Storyboard x:Name="uxSBIntro">
            <DoubleAnimation Duration="0:0:1" From="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="uxSlides" d:IsOptimized="True"/>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="uxExitHint">
                <EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" 
		  DoubleTap="LayoutRoot_DoubleTap" 
		  ManipulationCompleted="LayoutRoot_ManipulationCompleted"
		  >
        <Grid x:Name="uxSlides" />
        <Border 
			x:Name="uxExitHint"
			HorizontalAlignment="Center"
			VerticalAlignment="Center"
			CornerRadius="18" Background="{StaticResource PhoneChromeBrush}"
			Padding="20,0,20,5" >
            <TextBlock 
				Text="double tap to exit" 
				FontFamily="{StaticResource PhoneFontFamilyNormal}"
				FontSize="{StaticResource PhoneFontSizeMedium}" />
        </Border>

    </Grid>
</UserControl>
